---
id: multiple
title: Multiple
sidebar_label: Multiple
description: Multiple animation
keywords:
  - custom-animations
  - multiple
  - carousel animation
  - carousel animation multiple
  - react-native-reanimated-carousel
  - reanimated-carousel
  - reanimated carousel
  - react-native
  - snap-carousel
  - react native
  - snap carousel
  - ios
  - android
  - carousel
  - snap
  - reanimated
image:
slug: /examples/custom-animations/multiple
---

{/* 

=========================================================================
=========================================================================
This page generated by /scripts/gen-pages.mjs, Don't update it manually 
=========================================================================
=========================================================================

*/}

import { Tabs } from 'nextra/components'
import { Callout } from 'nextra/components'
import Demo from '@/components/Demo'

<Callout type="info" emoji="💡">
  Check out the `multiple` animation demo for the full source code [here](https://github.com/dohooo/react-native-reanimated-carousel/blob/main/example/app/app/demos/custom-animations/multiple/index.tsx)
</Callout>

<Demo kind="custom-animations" name="multiple" />

```tsx copy
import * as React from "react";
import { View } from "react-native";
import Carousel from "react-native-reanimated-carousel";

import { SBItem } from "@/components/SBItem";
import { PURPLE_IMAGES } from "@/constants/purple-images";
import { window } from "@/constants/sizes";

const PAGE_WIDTH = window.width;

const COUNT = 6;

function Index() {
	return (
		<View
			id="carousel-component"
			dataSet={{ kind: "custom-animations", name: "multiple" }}
		>
			<Carousel
				loop
				autoPlay
				vertical={false}
				width={PAGE_WIDTH / COUNT}
				height={PAGE_WIDTH / 2}
				style={{
					width: PAGE_WIDTH,
				}}
				data={PURPLE_IMAGES}
				renderItem={({ index }) => <SBItem key={index} index={index} />}
			/>
		</View>
	);
}

export default Index;

```